<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel-heading">
        <ul class="nav nav-tabs" data-field="status">
            <li class="active"><a href="#lang-one" data-value="" data-toggle="tab">基础信息</a></li>
            <li><a href="#lang-two" data-value="" data-toggle="tab">提审信息</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="LangTabList" class="tab-content">
            <div class="tab-pane fade active in" id="lang-one">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text"
                               value="{$row.name|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Cover')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-cover" data-rule="required" class="form-control" size="50" name="row[cover]"
                                   type="text"
                                   value="{$row.cover|htmlentities}">
                            <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-cover" class="btn btn-danger faupload"
                                  data-input-id="c-cover"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                  data-multiple="false" data-preview-id="p-cover"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                <span><button type="button" id="fachoose-cover" class="btn btn-primary fachoose"
                                              data-input-id="c-cover" data-mimetype="image/*" data-multiple="false"><i
                                        class="fa fa-list"></i> {:__('Choose')}</button></span>
                            </div>
                            <span class="msg-box n-right" for="c-cover"></span>
                        </div>
                        <ul class="row list-inline faupload-preview" id="p-cover"></ul>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Thumbs')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-thumbs" data-rule="required" class="form-control" name="row[thumbs]" type="number"
                               value="{$row.thumbs|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Comment')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-comment" data-rule="required" class="form-control" name="row[comment]"
                               type="number"
                               value="{$row.comment|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Ishot')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-ishot" class="form-control" name="row[ishot]" type="number"
                               value="{$row.ishot|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number"
                               value="{$row.price|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-category" class="form-control" name="row[category]" type="number"
                               value="{$row.category|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-area" class="form-control" name="row[area]" type="number"
                               value="{$row.area|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Year')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-year" class="form-control" name="row[year]" type="number"
                               value="{$row.year|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Sum')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-sum" class="form-control" name="row[sum]" type="number"
                               value="{$row.sum|htmlentities}">
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <textarea id="c-desc" class="form-control" rows="5"
                                  name="row[desc]">{$row.desc|htmlentities}</textarea>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="lang-two">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('单集时长')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-duration" class="form-control" name="row[duration]" type="number"
                               value="{$row.duration|htmlentities}">
                        <div class="help-block"><span class="text-muted small"> 平均单集时长,单位分钟</span></div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Production_organization')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-production_organization" class="form-control" name="row[production_organization]"
                               type="text"
                               value="{$row.production_organization|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Producer')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-producer" class="form-control" name="row[producer]" type="text"
                               data-role="tagsinput"
                               value="{$row.producer|htmlentities}">
                        <div class="help-block"><span class="text-muted small">输入后<code>回车</code>或<code>,</code>确认</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Director')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-director" class="form-control" name="row[director]" type="text"
                               data-role="tagsinput"
                               value="{$row.director|htmlentities}">
                        <div class="help-block"><span class="text-muted small">输入后<code>回车</code>或<code>,</code>确认</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Actor')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-actor" class="form-control" name="row[actor]" type="text" data-role="tagsinput"
                               value="{$row.actor|htmlentities}">
                        <div class="help-block"><span class="text-muted small">输入后<code>回车</code>或<code>,</code>确认</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Screen_writer')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-screen_writer" class="form-control" name="row[screen_writer]" type="text"
                               data-role="tagsinput"
                               value="{$row.screen_writer|htmlentities}">
                        <div class="help-block"><span class="text-muted small">输入后<code>回车</code>或<code>,</code>确认</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <div class="radio">
                            {foreach name="statusList" item="vo"}
                            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]"
                                                                   type="radio"
                                                                   value="{$key}" {in name="key" value="$row.status"
                                                                   }checked{/in}
                                /> {$vo}</label>
                            {/foreach}
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            </div>
        </div>
</form>
